using System;
using System.IO;
using log4net.Util;

namespace Kotonoha.Server.Utils.Logging {
    public class SpecialFolderPatternConverter : PatternConverter {
        protected override void Convert(TextWriter writer, object state) {
            var specialFolder = (Environment.SpecialFolder) Enum.Parse(typeof (Environment.SpecialFolder), base.Option, true);
            writer.Write(Environment.GetFolderPath(specialFolder));
        }
    }
}